package com.gidgabs.modules.entity;

import com.gidgabs.dto.TbOrderSuperDto;

import java.io.Serializable;
import java.util.Date;



/**
 * 产品订单详细表
 * 
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-07-06 18:14:03
 */
public class TbOrderSuperEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//
	private Integer id;
	//订单编码
	private String orderCode;
	//用户id
	private Integer userId;
	//订单实付金额 单位 分
	private Integer orderPrice;
	//订单支付类型
	private Integer orderPayType;
	//创建时间
	private Date createTime;

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：订单编码
	 */
	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	/**
	 * 获取：订单编码
	 */
	public String getOrderCode() {
		return orderCode;
	}
	/**
	 * 设置：用户id
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户id
	 */
	public Integer getUserId() {
		return userId;
	}
	/**
	 * 设置：订单实付金额 单位 分
	 */
	public void setOrderPrice(Integer orderPrice) {
		this.orderPrice = orderPrice;
	}
	/**
	 * 获取：订单实付金额 单位 分
	 */
	public Integer getOrderPrice() {
		return orderPrice;
	}
	/**
	 * 设置：订单支付类型
	 */
	public void setOrderPayType(Integer orderPayType) {
		this.orderPayType = orderPayType;
	}
	/**
	 * 获取：订单支付类型
	 */
	public Integer getOrderPayType() {
		return orderPayType;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	public TbOrderSuperDto toDto(){
		TbOrderSuperDto tbOrderSuperDto=new TbOrderSuperDto();
		tbOrderSuperDto.setId(this.getId());
		tbOrderSuperDto.setOrderCode(this.getOrderCode());
		tbOrderSuperDto.setUserId(this.getUserId());
		tbOrderSuperDto.setOrderPrice(this.getOrderPrice());
		tbOrderSuperDto.setOrderPayType(this.getOrderPayType());
		tbOrderSuperDto.setCreateTime(this.getCreateTime());
		return tbOrderSuperDto;
	}


}
